package com.appwoo.txtws.component;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.os.Build;
import android.os.Build.VERSION;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import java.util.Map;

public class StatusProtect
{
  private static final int HEAP_SIZE = 6291456;
  public static boolean blExistsView = false;
  public static boolean blInit = false;
  private static Bitmap bmp;
  static Context context;
  static View protectView = null;
  static WindowManager winManager = null;

  public static void Hide(Context paramContext)
  {
    if (FilterSoft.IsCustomVersion());
    String str;
    do
    {
      do
        return;
      while (winManager == null);
      str = Build.MODEL;
    }
    while (FilterMobile.MobileList().containsValue(str));
    blExistsView = false;
    try
    {
      winManager.removeView(protectView);
      return;
    }
    catch (Exception localException)
    {
      localException.printStackTrace();
    }
  }

  public static void Show(Context paramContext)
  {
    if (FilterSoft.IsCustomVersion());
    WindowManager.LayoutParams localLayoutParams;
    do
    {
      String str;
      do
      {
        return;
        str = Build.MODEL;
      }
      while (FilterMobile.MobileList().containsValue(str));
      if (protectView == null)
        protectView = ((LayoutInflater)paramContext.getSystemService("layout_inflater")).inflate(2130903206, null);
      context = paramContext;
      if (winManager == null)
        winManager = (WindowManager)paramContext.getSystemService("window");
      int i = 40;
      int j = 2003;
      if (Build.VERSION.SDK_INT >= 14)
        j = 2006;
      int k = Resources.getSystem().getIdentifier("status_bar_height", "dimen", "android");
      if ((k != 0) && (Resources.getSystem().getDimensionPixelSize(k) >= 0))
        i = Resources.getSystem().getDimensionPixelSize(k);
      localLayoutParams = new WindowManager.LayoutParams(-1, i, j, 296, -3);
      localLayoutParams.gravity = 51;
      localLayoutParams.type = 2010;
    }
    while (blExistsView);
    protectView.setVisibility(0);
    winManager.addView(protectView, localLayoutParams);
    blExistsView = true;
  }
}

/* Location:           C:\Documents and Settings\Administrator\classes_dex2jar.jar
 * Qualified Name:     com.appwoo.txtws.component.StatusProtect
 * JD-Core Version:    0.6.2
 */